added samples
[windows-sources.git] / sdk / samples / all in on code / Visual Studio 2010 / CSWebBrowserSuppressError / DWebBrowserEvents2.cs
blob3d1dfabeb4bb43f499df415e6bdba9c488f13acc
1 /****************************** Module Header ******************************\
2 * Module Name: DWebBrowserEvents2.cs
3 * Project: CSWebBrowserSuppressError
4 * Copyright (c) Microsoft Corporation.
5 *
6 * The interface DWebBrowserEvents2 designates an event sink interface that an
7 * application must implement to receive event notifications from a WebBrowser
8 * control or from the Windows Internet Explorer application. The event
9 * notifications include NavigateError event that will be used in this
10 * application.
12 * To get the full event list of DWebBrowserEvents2, see
13 * http://msdn.microsoft.com/en-us/library/aa768283(VS.85).aspx
15 * This source is subject to the Microsoft Public License.
16 * See http://www.microsoft.com/opensource/licenses.mspx#Ms-PL.
17 * All other rights reserved.
19 * THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
20 * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
21 * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
22 \***************************************************************************/
24 using System;
25 using System.Runtime.InteropServices;
27 namespace CSWebBrowserSuppressError
29 [ComImport, TypeLibType(TypeLibTypeFlags.FHidden),
30 InterfaceType(ComInterfaceType.InterfaceIsIDispatch),
31 Guid("34A715A0-6587-11D0-924A-0020AFC7AC4D")]
32 public interface DWebBrowserEvents2
34 [DispId(271)]
35 void NavigateError(
36 [In, MarshalAs(UnmanagedType.IDispatch)] object pDisp,
37 [In] ref object url,
38 [In] ref object frame,
39 [In] ref object statusCode,
40 [In, Out] ref bool cancel);